home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- WinSetup for Windows 9x
- Copyright (C) 2000-2001 Glebov Igor Olegovich
- All right reserved.
- --------------------------------------------------------------------------------
- Simplest example Plugin for Winsetup for Windows 9x (Use Borland Delphi 3.0 or
- higher to compile this module).
- For using plugin copy created DLL in directory Plugins.
- --------------------------------------------------------------------------------
- {WSModule.dpr}
-
- Library WSModule;
-
- Uses
- Forms,
- Unit1 In 'Unit1.pas' {Form1};
-
- Function WinSetup_Module: TFormClass; Export;
- Begin
- Result := TForm1;
- End;
-
- Function Module_Title: PChar; Export;
- Begin
- Result := PChar('WinSetup for Windows 9x');
- End;
-
- Exports
- Module_Title Index 1 Name 'MODULE_TITLE',
- WinSetup_Module Index 2 Name 'WINSETUP_MODULE';
- Begin
- End.
- --------------------------------------------------------------------------------
- {Unit1.pas}
-
- Unit Unit1;
-
- Interface
-
- Uses
- Controls, Forms, StdCtrls;
-
- Type
- TForm1 = Class(TForm)
- Button1: TButton;
- Procedure Button1Click(Sender: TObject);
- Procedure FormClose(Sender: TObject; Var Action: TCloseAction);
- End;
-
- Var Form1: TForm1;
-
- Implementation
-
- {$R *.DFM}
-
- Procedure TForm1.Button1Click(Sender: TObject);
- Begin
- Close;
- End;
-
- Procedure FormClose(Sender: TObject; Var Action: TCloseAction);
- Begin
- Action := caFree;
- End;
-
- End.
- --------------------------------------------------------------------------------